''InputEx -- Extended Input Routine by sir_mud
''licensed under the terms of the GPLv2
''If you would like to use this in a non-GPL compatible program
''contact me at sir_mud@users.sourceforge.net for purchase details
''file: inputex.bi
''Stored online @ http://mud.owlbox.net

#ifndef NULL
	#define NULL 0
#endif

#ifndef __HMCSOFT_INPUTEX_
#define __HMCSOFT_INPUTEX_ 1

type InputEx

Public:
	as uinteger maxlength, y, x, cretval
	as ubyte password, cancel, numonly
	as double timeout

	_print_cb as sub( as uinteger, as uinteger, as string, as any ptr )
	_print_cb_data as any ptr
	_callback as function( as uinteger ) as integer

	declare Function get( x as uinteger = Pos(), y as uinteger = Csrlin() ) as string
	declare constructor()

Private:
	as string temp

end type

declare sub _def_print( x as uinteger, y as uinteger, _
			data_ as string, _nu as any ptr = NULL )

declare sub _def_gfx_print( x as uinteger, y as uinteger, _
			data_ as string, _color as any ptr = NULL )

#inclib "inputex"

#endif
